﻿using System;
using NAudio.Wave;

namespace PT.NoteDetection.Wave {
    public abstract class AudioCapture {
        public bool IsCapturing { get; protected set; }

        public WaveStream Output { get; set; }
        public event EventHandler NewData;

        protected void OnNewData() {
            var handlers = NewData;

            if (handlers != null) {
                handlers(this, EventArgs.Empty);
            }
        }

        public abstract void Start();
        public abstract void Stop();
    }
}